package com.realgodo.site.web;

import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;

import com.realgodo.site.entity.site.Info;
import com.realgodo.site.service.site.InfoManager;
@Scope("prototype")
public class InfoController extends ControllerSupport {

	private static final long serialVersionUID = -3002358715466225306L;

	@Resource
	private InfoManager infoManager;

	private Info info;

	private Long id;

	public String execute() {
		if (getId() != null) {
			info = infoManager.get(getId());
		}
		return SUCCESS;
	}

	public Info getInfo() {
		return info;
	}

	public void setInfo(Info info) {
		this.info = info;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

}
